<div id="commit-options"></div>
<div class="header">
<p>
Next: [[cvs: commit examples#commit examples|commit examples]], Up: [[cvs: commit--Check files into the repository#commit&mdash;Check files into the repository|commit]] &nbsp; |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|</p>
</div>

----

<div id="commit-options-1"></div>
==== commit options ====

These standard options are supported by <code>commit</code>
(see [[cvs: Common command options#Common command options|Common options]], for a complete description of
them):

;<code>-l</code>
: Local; run only in current working directory.

;<code>-R</code>
: Commit directories recursively.  This is on by default.

;<code>-r <var>revision</var></code>
: Commit to <var>revision</var>.  <var>revision</var> must be either a branch, or a revision on the main trunk that is higher than any existing revision number (see [[cvs: Assigning revisions#Assigning revisions|Assigning revisions]]).  You cannot commit to a specific revision on a branch.

<code>commit</code> also supports these options:

;<code>-F <var>file</var></code>
: Read the log message from <var>file</var>, instead of invoking an editor.

;<code>-f</code>
: Note that this is not the standard behavior of the &lsquo;<code>-f</code>&rsquo; option as defined in [[cvs: Common command options#Common command options|Common options]].

: Force <small>CVS</small> to commit a new revision even if you haven&rsquo;t made any changes to the file.  If the current revision of <var>file</var> is 1.7, then the following two commands are equivalent:

<div class="example" style="margin-left: 3.2em">
 $ cvs commit -f <var>file</var>
 $ cvs commit -r 1.8 <var>file</var>
</div>

: The &lsquo;<code>-f</code>&rsquo; option disables recursion (i.e., it implies &lsquo;<code>-l</code>&rsquo;).  To force <small>CVS</small> to commit a new revision for all files in all subdirectories, you must use &lsquo;<code>-f -R</code>&rsquo;.

;<code>-m <var>message</var></code>
: Use <var>message</var> as the log message, instead of invoking an editor.

This document was generated on <i>a sunny day</i> using [http://www.nongnu.org/texi2html/ <i>texi2html</i>].
